import Vue from 'vue'
import Router from 'vue-router'
import VueResource from 'vue-resource'
import shou from '../components/shou'
import nansheng from '../components/nan'
import nvsheng from '../components/nv'
import shu from '../components/shu'
import chong from '../components/chong'
import nan from '../components/shou-zi/nan'
import nv from '../components/shou-zi/nv'
Vue.use(Router)
Vue.use(VueResource)

export default new Router({
  routes: [{
      path: '/shou',
      name: 'shou',
      component: shou,
      children: [{
          path: '/shou/nanQ',
          component: nan
        },
        {
          path: '/shou/nvQ',
          component: nv
        },
        {
          path: '/shou',
          redirect: '/shou/nanQ'
        }
      ]
    },
    {
      path: '/nan',
      component: nansheng,
    },
    {
      path: '/nv',
      component: nvsheng,
    },
    {
      path: '/shu',
      component: shu,
    },
    {
      path: '/chong',
      component: chong,
    },
    {
      path: '/',
      redirect: '/shou/nanQ'
    }
  ]
})
